﻿@using Weather.BLL.Entity
@{
    var list = ViewBag.WeatherDataList as List<WeatherAqiRealTimeInfo>;
}
<div class="tabbable" style="margin-top: 10px;">
    @*<ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;" data-toggle="tab">@Html.Raw(@ViewBag.Title)</a> </li>
    </ul>*@
    <div class="tab-content padding-2">
        <div class="tab-pane active" style="background: top center no-repeat;">
            <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#edf1fc"
                style="border: solid 1px #ccc; border-collapse: collapse;">
                
                @if (list != null)
                {
                    <tr>
                        <td align="center"><strong>站名</strong></td>
                        <td align="center"><strong>站号</strong></td>
                        <td align="center"><strong>Pm1</strong></td>
                        <td align="center"><strong>Pm2.5</strong></td>
                        <td align="center"><strong>Pm10</strong></td>
                        <td align="center"><strong>发布时间</strong></td>
                    </tr>
                    foreach (var a in list)
                    {
                    <tr>
                        <td align="center">@a.stationname</td>
                        <td align="center">@a.stationnum</td>
                        <td align="center">@a.Pm1</td>
                        <td align="center">@a.Pm25</td>
                        <td align="center">@a.Pm10</td>
                        <td align="center">@a.observtime.ToString("yyyy-MM-dd HH:mm")</td>
                    </tr>
                    }
                }
            </table>
            <div class="clear"></div>
        </div>
    </div>
</div>
